package com.xiaomi.dao;

import com.xiaomi.pojo.Goods;

import java.util.List;

/**
 * @ClassName GoodsDao
 * @Author xiao宋
 * @Date 16:10  2022/9/14
 * @Version 1.0
 * @Description TODO
 */
public interface GoodsDao {
    long getTotalCount(int typeId);

    Goods findById(int id);

    List<Goods> getDate(int typeId, int startIndex, int pageSize);

    List<Goods> findAll();

    List<Goods>findGoodsByTypeId(int goodsTypeId);

    void addGoods(String name, String picture, String intro, int price, int star, String pubdate, int typeid);
}
